﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>报表表格</title>
<link rel="stylesheet" type="text/css" href="${base}/forScreen/css/table.css"/>
<script src="${base}/forScreen/jquery-1.8.3.min.js" type="text/javascript"></script>
<script>

$(document).ready(function(){
$(".thstyle tbody tr:even").addClass("bcolor0");
$(".thstyle tbody tr:odd").addClass("bcolor1");
$(".thstyle tbody tr:last").addClass("bcolor2");


if($(".thstyle").height()>$(".table_all").height())
{

var height1=-($(".thstyle").height()-$(".table_all").height());
$(".heji_tr a").css("top",height1);

}

$(".table_all").scroll(function(){
var Top1=$(this).scrollTop();
var Top2=height1+Top1;

$(".thstyle thead a").css("top",Top1);

$(".thstyle .heji_tr a").css("top",Top2);
						   })




})




</script>
</head>

<body style="margin: auto 0;">
	<div class="table_all">
		<table class="thstyle" >
			<col width="11%"/>
            <col width="13%"/>
            <col width="9%"/>
            <col width="11%"/>
            <col width="6%"/>
            <col width="9%"/>
            <col width="10%"/>
            <col width="7%"/>
            <col width="9%"/>
            <col width="8%"/>
            <col width="9%"/>
            <thead>

            <tr>
            <th><div><a>公司名称</a></div></th>
            <th><div><a>品种</a></div></th>
            <th><div><a>期初</a></div></th>
            <th><div><a>采购</a></div></th>
            <th><div><a>拨入(入库)</a></div></th>
            <th><div><a>调整(入库)</a></div></th>
            <th><div><a>销售(出库)</a></div></th>
            <th><div><a>拨出(出库)</a></div></th>
            <th><div><a>调整(出库)</a></div></th>
            <th><div><a>内部领用(出库)</a></div></th>
            <th style=" border-right:none;"><div><a>期末</a></div></th></tr>
            </thead>
            
            
            
			<tbody>
<#if result??>
    <#list result.get("rows") as rows>
			<tr><td style="text-align:left">${rows.get("gs_name")!}</td>
                <td style="text-align:left"  title="${rows.get("pz")!}">${rows.get("pz")!}</td>
                <td>${rows.get("qc")!}</td>
                <td class="fcolor0">${rows.get("rk")!}</td>
                <td>${rows.get("zr")!}</td>
                <td class="fcolor1">${rows.get("rktz")!}</td>
                <td class="fcolor0">${rows.get("ck")!}</td>
                <td class="fcolor0">${rows.get("zc")!}</td><td class="fcolor1">${rows.get("cktz")!}</td>
                <td>${rows.get("nbly")!}</td>
                <td style="border-right:none;">${rows.get("qm")!}</td>
            </tr>
    </#list>
</#if>
<#if result??>
    <#list result.get("footer") as foot>
            <tr class="heji_tr">
                <td><div><a style="text-align:center; font-weight:bold"><span>合计</span></a></div></td>
                <td><div><a><span>&nbsp;</span></a></div></td>
                <td><div><a><span>${foot.get("qc")!}</span></a></div></td>
                <td><div><a><span>${foot.get("rk")!}</span></a></div></td>
                <td><div><a><span>${foot.get("zr")!}</span></a></div></td>
                <td><div><a><span>${foot.get("rktz")!}</span></a></div></td>
                <td><div><a><span>${foot.get("ck")!}</span></a></div></td>
                <td><div><a><span>${foot.get("zc")!}</span></a></div></td>
                <td><div><a><span>${foot.get("cktz")!}</span></a></div></td>
                <td><div><a><span>${foot.get("nbly")!}</span></a></div></td>
                <td style="border-right:none;"><div><a><span>${foot.get("qm")!}</span></a></div></td>
            </tr>
    </#list>
</#if>
                
            </tbody>
		</table>

	</div>
    	<div class="pagesall">
			<ul class="pages">
			<li><a href="#" class="last"></a></li>
			<#--<li><a href="#">1</a></li>-->
			<#--<li><a href="#">2</a></li>-->
			<#--<li><a href="#">3</a></li>-->
			<#--<li><a href="#">…</a></li>-->
			<#--<li><a href="#">103</a></li>-->
			<li><a href="#" class="next"></a></li>
			</ul>
		</div>	
</body>

</html>
